//
//  NewDevice1ViewController.h
//  Demo
//
//  Created by liao Echo on 13-10-17.
//

#import <UIKit/UIKit.h>
#import "MyUIViewController.h"
#import "CoverFlowView.h"

@interface UIImage (UIImageCategory)
-(UIImage*)scaleToSize:(CGSize)size;
@end
//添加新设备

@protocol NewDeviceDelegate

-(void)NewDeviceDelegateName:(NSString*)index name:(NSString*)name fileid:(NSString *)fileid;
-(void)modifyNewDeviceDelegateName:(NSString*)index name:(NSString*)name fileid:(NSString *)fileid;

@end

@interface NewDevice1ViewController : MyUIViewController<CoverFlowViewDelegate,UITextFieldDelegate,UIActionSheetDelegate,UIImagePickerControllerDelegate, UINavigationControllerDelegate>{
    UITextField *tf;
    UIImageView *bg;
    UIScrollView *hScrollview;
    int selectIndex;
    __unsafe_unretained id delegate;
    UIButton *logo;
    UIImage *_image;
    NSString *strFilename;
    CGRect preRect;
    
    BOOL modify;//修改设备信息
    DEVICE_TYPE type;//设备类型
}
@property (nonatomic, assign) id delegate;
@property (nonatomic, strong) UIImage *_image;
@property (nonatomic, strong) NSString *strFilename;
@property (nonatomic, assign) BOOL modify;
@property(nonatomic, assign)DEVICE_TYPE type;
@end




